<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>add</title>
	<hdjs/>
</head>
<body>
<div class="wrap">
	<div class="menu_list">
		<ul>
		    <li><a href="{|U:'index'}"  class="action">问题列表</a></li>
		    <li><a href="{|U:'add'}">发布问题</a></li>
		</ul>
	</div>
<form method="post">
  	<input type="hidden" name="qid" value="{$question.qid}">
	<table class="table1 hd-form">
		<tr>
			<td class="w100">问题分类</td>
			<td>
				<select name="cid" class="w150" style="text-align:center;">
					<list from='$cat' name='$c'>
					<option value="{$c.cid}" <if value="$c.cid eq $question.cid">
					selected='' </if>>{$c.catname}</option>
					</list>
				</select>
			</td>
		</tr>
		<tr>
			<td>问题</td>
			<td><input type="text" name="qname" class="w250" value="{$question.qname}"></td>
		</tr>
		<tr>
		<td>缩略图</td>
		<td>
			<upload size='2' type='jpg,jpeg,png,gif' limit='2' name='thumb' message="0" water="0" 
			data="{$question['thumb']}" />
		</td>	
		</tr>
		<tr>
			<td>发布时间</td>
			<td><input type="text" readonly="readonly" id="qtime" name="qtime"
 value="{$question.qtime|date:'Y/m/d H:i:s',@@}"
class="w150"/></td>
			<script>
	$('#qtime').calendar({format: 'yyyy/MM/dd HH:mm:ss'});
 </script>
		</tr>
		<tr>
			<td>浏览次数</td>
			<td><input type="text" name="qclick" value="{$question.qclick}"></td>
		</tr>
	</table>
	<input type="submit" value="发布" class="hd-success">
	<js file="__CONTROLLER_VIEW__/Js/js.js"/>
</form>
</div>
</body>
</html>